// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import $ from 'jquery'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'

import axios from "axios";
Vue.prototype.axios=axios; //改写成vue的原型属性可以全局使用axios，不需要每个组件引入axios
import VueAxios from 'vue-axios'
Vue.use(VueAxios,axios);
Vue.prototype.baseURL='http://localhost:8080/book/';

import echarts from 'echarts'
Vue.prototype.$echarts = echarts

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
